CKEDITOR.dialog.add( 'email', function( editor ) {
	return { 
		title: 'eMail Adresse einfuegen, Orginal',
 
		minWidth: 300,
		minHeight: 300,
 
 
		contents: [ 
			{
				id: 'tab1',
				label: 'Tab1',
				title: 'Tab1',
				elements : [ 
					{
						id: 'txtMail',
						type: 'text',
						label: "eMail Adresse eingeben",
						validate : function() {
							// potentielle Validierungen
							/*if (this.getValue() == "") {
								//alert("Das Feld darf nicht leer sein!");
							}
							return this.getValue() != "";*/
						}
					},
					
				 ]
			}
		 ],
 
 
		 onOk: function() { 
			
//			alert(editor.getSelection().getNative());
			
	//		editor.insertHtml('<a href=\x22www.google.com\x22>'+editor.getSelection().getNative() + '</a>');

			//alert(this.getContentElement('tab1', 'txtMail').getValue());
			
            alert('email insert2');
			var element = CKEDITOR.dom.element.createFromHtml(
					'<a href="mailto:' + this.getContentElement('tab1', 'txtMail').getValue() + '">' + 
						this.getContentElement('tab1', 'txtMail').getValue() + 	'</a>');
			editor.insertElement(element);
		 }
 

	};
 
} );